package com.example.teachingSystem.service;

import com.example.teachingSystem.pojo.entity.Semester;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.teachingSystem.pojo.form.BasePageQuery;
import com.example.teachingSystem.pojo.form.semester.AddSemesterForm;
import com.example.teachingSystem.pojo.form.semester.UpdateSemesterForm;
import com.example.teachingSystem.pojo.vo.OptionVo;
import com.example.teachingSystem.pojo.vo.SemesterVo;
import com.example.teachingSystem.utils.result.PageResult;
import com.example.teachingSystem.utils.result.Result;

import java.util.List;

/**
* @author 86147
* @description 针对表【semester(学期表)】的数据库操作Service
* @createDate 2023-12-10 23:58:05
*/
public interface SemesterService extends IService<Semester> {
    Result<String> addSemester(AddSemesterForm addSemesterForm);

    Result<String> updateSemester(UpdateSemesterForm updateSemesterForm);

    Result<String> deleteSemesterById(Long id);

    PageResult<SemesterVo> getSemester(BasePageQuery basePageQuery);

    Result<List<OptionVo>>  getSemesterOptions();
}
